package com.example.canteen.service.impl;

import com.example.canteen.domain.PurchaseOrders;
import com.example.canteen.mapper.PurchaseOrdersMapper;
import com.example.canteen.service.PurchaseOrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PurchaseOrdersServiceImpl implements PurchaseOrdersService {
    @Autowired
    private PurchaseOrdersMapper purchaseordersMapper;



    @Override
    public List<PurchaseOrders> selectAllPurchaseOrders() {
        return purchaseordersMapper.getAll();
    }

    @Override
    public PurchaseOrders selectPurchaseOrdersById(int PurchaseOrderID) {
        return null;
    }

    @Override
    public int insertPurchaseOrders(PurchaseOrders purchaseOrders) {
        return 0;
    }

    @Override
    public int deletePurchaseOrdersByID(int PurchaseOrderID) {
        return 0;
    }
//
//    @Override
//    public int insertPurchaseOrders(PurchaseOrders purchaseOrders) {
//        return 0;
//    }

//    @Override
//    public PurchaseOrders selectPurchaseOrdersById(int PurchaseOrderID) {
//        return null;
//    }
//
//    @Override
//    public int insertPurchaseOrders(PurchaseOrders purchaseorders) {
//        PurchaseOrders PurchaseOrders;
//        return PurchaseOrdersMapper.insertPurchaseOrders(PurchaseOrders) purchaseorders);
//    }
//
//
//    @Override
//    public int deletePurchaseOrdersByID(int id) {
//        return PurchaseOrdersMapper.deletePurchaseOrdersById(id);
//    }
}